TextData

public interface TextData implements UploadData

An upload data of the text/plain content type.

Functions

Link copied to clipboard
public Array<byte> bytes()
Returns an array containing the upload data bytes of the associated URL request.
Link copied to clipboard
Returns the content type of this upload data as specified in the Content-Type header.
Link copied to clipboard
public String data()
Returns a text representation of the upload data.
Link copied to clipboard
public static TextData of(String text)
Returns an instance of TextData with the given upload data obtained from the text string.